app: app.o inThread.o outThread.o
	g++ -o app app.o inThread.o outThread.o -L/usr/local/lib -lboost_system -lboost_thread-mt
	
app.o: main.cc
	g++  -c main.cc -o app.o

inThread.o: inThread.cc
	g++ -c inThread.cc -o inThread.o
	
outThread.o: outThread.cc
	g++ -c outThread.cc -o outThread.o

run:
	./app

clean:
	rm -f *.o app
